package com.lagou.edu.feignservice;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: springcloud-web-one
 * @description: 用户服务
 * @author: zhoushiduo
 * @create: 2021-03-29 09:15
 */

@FeignClient("lagou-service-user")
@RequestMapping("/user")
public interface UserService {

    @GetMapping("/isRegistered/{email}")
    public boolean isRegistered(@PathVariable("email") String email);

}
